﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LogicServer;
using Model;

namespace BugSysSolution.UserInfo
{
    public partial class MyInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindInfo();
            }
        }

        public void BindInfo() 
        {
            MyInfoLogic ml = new MyInfoLogic();
            List<MyInfos> list = ml.GetMyInfos();
            if (list == null || list.Count == 0)
            {
                return;
            }
            txt_email.InnerHtml = list[0].Email;
            txt_like.InnerHtml = list[0].Loves;
            txt_qq.InnerHtml = list[0].QQ;
            txt_sina.InnerHtml = list[0].Sinaweibo;
        }
    }
}